package comm.dhee.dao;

import java.sql.SQLException;
import comm.dhee.dto.M001;
import comm.dhee.dto.M002;

public class TestPR10101 {
	public static void main(String[] args) {

		PR10101DAO pr10101dao = new PR10101DAOImpl();

		try {
			M002 m002 = new M002();
			m002 = pr10101dao.selShouhin("10311");
			System.out.println(m002.getShouhinCode());
			System.out.println(m002.getShouhinMei());
			System.out.println(m002.getUriageTanka());
			System.out.println(m002.getTani());
			System.out.println(m002.getZaikoSuu());
			System.out.println("==============");
			////			
			String Kokyaku = "19500";
			M001 m001 = new M001();
			m001 = pr10101dao.selKokyaku("19500");
			System.out.println(m001.getKokyakuMei());
			System.out.println(m001.getKokyakuJuusho());
			System.out.println(m001.getShinyouGendoGaku());
			System.out.println(m001.getUrikakeKinZandaka());
			System.out.println("==============");

			String list1 = pr10101dao.selJuchuuCode();
			System.out.println(list1);
			System.out.println("==============");
			//
//						T001 teT001 = new T001();
//						teT001.setJuchuuCode("01010");
//						teT001.setNounyuuKibouBi("20190111");
//						teT001.setKokyakuCode("11000");
//						teT001.setNounyuuSaki("11");
//						teT001.setTantoushaCode("101");
//						System.out.println(pr10101dao.insJuchuu(teT001));
//						System.out.println("==============");

//			System.out.println(pr10101dao.updShouhin("10311", 20));
			//			System.out.println("==============");
			//			T002 teT002 = new T002();
			//			teT002 .setJuchuuCode("1002");
			//			teT002.setShouhinCode("10310");
			//			teT002.setUriageSuuryou(123);
			//			System.out.println(pr10101dao.insJuchuuMingxi(teT002));
			//			System.out.println("==============");

		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}
}
